# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=pdd
pkgver=1.7
pkgrel=3
pkgdesc="Tiny date, time diff calculator with piggybacked timers"
url="https://github.com/jarun/pdd"
arch="noarch"
license="GPL-3.0-only"
depends="python3 py3-dateutil"
checkdepends="py3-pytest"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
source="https://github.com/jarun/pdd/archive/v$pkgver/pdd-v$pkgver.tar.gz
	makefile.patch
	"

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
86c73cf9bce935eb180e24efda2f8eff1dce02fd49f3276020e3953d2082443f716286d4a708b193fb7b2a572a6b854690c1f0edb18cedaea741f0a3fcb7e13b  pdd-v1.7.tar.gz
d45f228fa4fdfe5419fc3008081f8c6a089e7a58b7c0693b8a9da056d6a195c2e0d8e07426825af9c329d2f35ff55ba77828979cc3c1819dc49eb848f6e1f6a6  makefile.patch
"
